<%-- 
    Document   : zbozi
    Created on : 27.5.2011, 10:20:14
    Author     : papa
--%>

<%@tag description="put the tag description here" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%-- The list of normal or fragment attributes can be specified here: --%>
<%@attribute name="kolekce" type="java.util.ArrayList<Model.Zbozi>"%>
<table>
    <tr>
        
        <c:forEach items="${kolekce}" var="item" varStatus="status">
        <form action="${stranka}" method="get">
            <input type="hidden" name="item" value="${status.count}"/>
            <td>
                <div class="stred_div" >
                    <table>
                        <tr><td><input type="button" value="${item.zbozi.znacka} ${item.zbozi.nazev}" style="background: #ffffff; border: white none"/></td></tr>
                        <tr><td><input type="image" src="${item.zbozi.obr}" width="139" height="179" /></td></tr>
                    </table>
                    <br/>
                    <table>
                        <tr>
                            <td>
                                <b>Cena: ${item.zbozi.cena} ,- Kč</b>
                            </td>
                            <td id="Skladem">
                                <b>Skladem </b>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                Velikosti: ${item.zbozi.delka}
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            </form>
            <c:if test="${status.count % 3 == 0}">
                </tr><tr>
            </c:if>
        </c:forEach>
    </tr>
</table>